#ifndef _adc_H
#define _adc_H
#include "stm32f10x.h"

extern u16 adc_get[3][16];
extern u16 adc_data[50];
extern u16 adc_value[3];
extern u8 DMA_DEGREE_BUFFER[32];
extern float  degree_x	, degree_y , degree_z ;


typedef struct{
				float degree;
				u8 msg[4];
				}degreeParameter;

extern degreeParameter xAxis,yAxis,zAxis;

degreeParameter GetADCAverage(degreeParameter AXIS);			
void adc_init(void);
void adc_caiji(void);
void Data_calibration(void);
u16 Get_Adc(u8 ch);
u16 Get_Adc_z(u8 ch);
#endif
